﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace examprojekt09
{

    class Employee
    {
        int id;
        string name;
        string email;
        int pid;
        public Employee(int id, string name, string email, int pid)
        {
            this.id = id;
            this.email = email;
            this.name = name;
            this.pid = pid;
        }
        // Get/set ID
        public int getId()
        {
            return id;
        }
        public void setId(int id)
        {
            this.id = id;
        }
        // Get/set Name
        public string getName() 
        {
            return name;
        }
        public void setName(string name) 
        {
            this.name = name;
        }
        // Get/set Email
        public string getEmail()
        {
            return email;
        }
        public void setEmail(string email)
        {
            this.email = email;
        }
        // Get/set PID
        public int getPid()
        {
            return pid;
        }
        public void setPid(int pid)
        {
            this.pid = pid;
        }
        // Get/set TOSTRING
        public override string ToString()
        {
            return this.email;
        }
    }
}
